import {defineStore} from 'pinia'
import {ref,computed} from 'vue'
export const useNumstore = defineStore('numstore', ()=>{
    const num = ref(10)
    const doubleNum = computed(()=>num.value * 2)
    const increase = ()=>{
        num.value++
    }
    const decrease = ()=>{
         num.value--
    }
    return {
        num,
        doubleNum,
        increase,
        decrease
    }
})